package com_djm_2025_06_03.interfacedemo2;

public class BasketBallCoach extends Coach {
    @Override
    public void teach() {
        System.out.println(this.name+"教打篮球");
    }

    public BasketBallCoach(String name, int age) {
        super(name, age);
    }

    public BasketBallCoach() {
    }

    @Override
    public String toString() {
        return "BasketBallCoach{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
